package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.ThridPartyBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.THIRD_LOGIN)
public class ConnThird extends BaseAsyPost<ThridPartyBean> {

    public String open_id, avatar, phone, username,password;



  public ConnThird(String open_id, String avatar, String phone, String username, String password, AsyCallBack<ThridPartyBean> asyCallBack) {
         super(asyCallBack);
         this.open_id = open_id;
         this.avatar = avatar;

         this.phone = phone;
         this.username = username;
         this.password = password;
     }

    @Override
    protected ThridPartyBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        Gson gson = new Gson();

        ThridPartyBean loginBean = new ThridPartyBean();

        loginBean = gson.fromJson(object.toString(), ThridPartyBean.class);


        return loginBean;


    }
}



